/**
 * 
 */
package com.worksmap.core.entity;

import java.util.Date;

import com.worksmap.core.util.DateUtil;

/**
 * 订单
 * @author jack
 *
 */
public class Trade {
	
	private int id;
	/**
	 * 主订单ID
	 */
	private String tid;
	/**
	 * 子订单ID
	 */
	private String oid;
	/**
	 * 卖家昵称
	 */
	private String seller_nick;
	/**
	 * 买家昵称
	 */
	private String buyer_nick;
	/**
	 * 买家评价状态
	 * 0未评价，1已评价
	 */
	private int rate_status_buyer = 0;
	/**
	 * 评价方式：0.系统尚未评价1.自动评价 2.手动批量评价
	 */
	private int rate_by_us = 0;
	
	/**
	 * 订单保存到本地北京时间
	 */
	private Date local_create_time = DateUtil.getBeijingDate();

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "Trade [id=" + id + ", tid=" + tid + ", oid=" + oid
				+ ", seller_nick=" + seller_nick + ", buyer_nick=" + buyer_nick
				+ ", rate_status_buyer=" + rate_status_buyer + ", rate_by_us="
				+ rate_by_us + ", local_create_time=" + local_create_time + "]";
	}

	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * @return the tid
	 */
	public String getTid() {
		return tid;
	}

	/**
	 * @param tid the tid to set
	 */
	public void setTid(String tid) {
		this.tid = tid;
	}

	/**
	 * @return the oid
	 */
	public String getOid() {
		return oid;
	}

	/**
	 * @param oid the oid to set
	 */
	public void setOid(String oid) {
		this.oid = oid;
	}

	/**
	 * @return the seller_nick
	 */
	public String getSeller_nick() {
		return seller_nick;
	}

	/**
	 * @param seller_nick the seller_nick to set
	 */
	public void setSeller_nick(String seller_nick) {
		this.seller_nick = seller_nick;
	}

	/**
	 * @return the rate_status_buyer
	 */
	public int getRate_status_buyer() {
		return rate_status_buyer;
	}

	/**
	 * @param rate_status_buyer the rate_status_buyer to set
	 */
	public void setRate_status_buyer(int rate_status_buyer) {
		this.rate_status_buyer = rate_status_buyer;
	}

	/**
	 * @return the rate_by_us
	 */
	public int getRate_by_us() {
		return rate_by_us;
	}

	/**
	 * @param rate_by_us the rate_by_us to set
	 */
	public void setRate_by_us(int rate_by_us) {
		this.rate_by_us = rate_by_us;
	}

	/**
	 * @return the local_create_time
	 */
	public Date getLocal_create_time() {
		return local_create_time;
	}

	/**
	 * @param local_create_time the local_create_time to set
	 */
	public void setLocal_create_time(Date local_create_time) {
		this.local_create_time = local_create_time;
	}

	/**
	 * @return the buyer_nick
	 */
	public String getBuyer_nick() {
		return buyer_nick;
	}

	/**
	 * @param buyer_nick the buyer_nick to set
	 */
	public void setBuyer_nick(String buyer_nick) {
		this.buyer_nick = buyer_nick;
	}
	
}
